package com.xmu.prcs.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 植物地理位置表
 * @author frequent
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "location")
public class Location implements Serializable {

	private Integer idLocation;
	private String longitude;//经度
	private String latitude;//纬度
	
	public Location(){
		
	}
	
	public Location(String longitude, String latitude){
		this.longitude = longitude;
		this.latitude = latitude;
	}

	@Id
	@GeneratedValue
	@Column(name = "idlocation", unique = true, nullable = true)
	public Integer getIdLocation() {
		return idLocation;
	}

	public void setIdLocation(Integer idLocation) {
		this.idLocation = idLocation;
	}

	@Column(name = "longitude", length = 20)
	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	@Column(name = "latitude", length = 20)
	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}
	
}
